package cn.zero.controller;


import cn.zero.domain.MovieTicket;
import cn.zero.fegin.MovieFegin;
import cn.zero.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.cloud.context.config.annotation.RefreshScope;
import org.springframework.web.bind.annotation.*;

@RefreshScope // 动态刷新配置注解
@RestController
@RequestMapping("/user")
public class UserController {


    @Autowired
    public MovieFegin movieFegin;



    @GetMapping("/getMovie/{id}")
    public MovieTicket getMovie(@PathVariable("id") Long id){
        return movieFegin.getMovie(id);
    }



}
